package com.question.entity;

public class Answer {
	/*
	 * `id` int(11) NOT NULL,
  `answer_info` varchar(500) DEFAULT NULL,
  `answer_state` int(1) DEFAULT '0',
  `t_user_id` int(11) DEFAULT NULL,
	 */
	private Integer id;
	private String answer_info;
	private Integer answer_state;
	private User user;
	private Question question;
	
	public Answer() {
		super();
	}
	
	public Answer(Integer id, String answer_info, User user,Integer answer_state) {
		super();
		this.id = id;
		this.answer_info = answer_info;
		this.user = user;
		this.answer_state = answer_state;
	}

	public Answer(String answer_info, User user, Question question) {
		super();
		this.answer_info = answer_info;
		this.user = user;
		this.question = question;
	}
	public Question getQuestion() {
		return question;
	}
	public void setQuestion(Question question) {
		this.question = question;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getAnswer_info() {
		return answer_info;
	}
	public void setAnswer_info(String answer_info) {
		this.answer_info = answer_info;
	}
	public Integer getAnswer_state() {
		return answer_state;
	}
	public void setAnswer_state(Integer answer_state) {
		this.answer_state = answer_state;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	

}
